// pages/tool/index.js
Page({

  /**
   * 页面的初始数据
   */
  data: {
    pages:[
      {url:"/pages/manygroup/index",title:"多人拼团",},
      {url:"/pages/retail/index",title:"",},
      {url:"/pages/detail/index",title:"",},
      {url:"/pages/tag/index",title:"",},
      {url:"/pages/group/index",title:"",},
      {url:"/pages/selectproduct/index",title:"",},
      {url:"/pages/myteam/index",title:"",},
      {url:"/pages/customList/index",title:"",},
      {url:"/pages/classification/index",title:"",},
      {url:"/pages/analysis/index",title:"",},
      {url:"/pages/technique/index",title:"",},
    ],
  },

  /**
   * 生命周期函数--监听页面加载
   */
   torote:function(event){
  
     let url = event.currentTarget.dataset['url'];
     console.log(url)
    wx.navigateTo({
      url,
    })
   },
  onLoad: function (options) {
    let pages = getCurrentPages();
    console.log(pages)

  },

  /**
   * 生命周期函数--监听页面初次渲染完成
   */
  onReady: function () {

  },

  /**
   * 生命周期函数--监听页面显示
   */
  onShow: function () {
   
  },

  /**
   * 生命周期函数--监听页面隐藏
   */
  onHide: function () {

  },

  /**
   * 生命周期函数--监听页面卸载
   */
  onUnload: function () {

  },

  /**
   * 页面相关事件处理函数--监听用户下拉动作
   */
  onPullDownRefresh: function () {

  },

  /**
   * 页面上拉触底事件的处理函数
   */
  onReachBottom: function () {

  },

  /**
   * 用户点击右上角分享
   */
  onShareAppMessage: function () {

  }
})